package com.anxin.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 预约挂号表
 */
@Data
@TableName("appointment")
public class Appointment {
    /**
     * 预约ID(UUID)
     */
    @TableId
    private String id;

    /**
     * 患者ID
     */
    private String patientId;

    /**
     * 医生ID
     */
    private String doctorId;

    /**
     * 科室ID
     */
    private String departmentId;

    /**
     * 出诊ID
     */
    private String scheduleId;

    /**
     * 预约日期
     */
    private LocalDate appointmentDate;

    /**
     * 预约时段(1:上午,2:下午)
     */
    private Integer appointmentTime;

    /**
     * 预约号
     */
    private Integer appointmentNumber;

    /**
     * 就诊序号
     */
    private Integer visitNumber;

    /**
     * 挂号费
     */
    private BigDecimal registrationFee;

    /**
     * 状态(1:待就诊,2:已就诊,3:已取消,4:已过期)
     */
    private Integer status;

    /**
     * 取消原因
     */
    private String cancelReason;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
} 